﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace l
{
    class Program
    {
        static void Main(string[] args)
        {
            string path = Directory.GetCurrentDirectory();
            Console.WriteLine();
            Console.WriteLine("\""+path+"\""+" is current directory");
            Console.WriteLine();
            DirectoryInfo di = new DirectoryInfo(path);
            FileInfo[] filePaths = null;
            if (args.Length == 0)
            {
                filePaths = di.GetFiles();
                foreach (FileInfo filePath in filePaths)
                {
                    Console.WriteLine(filePath);
                }
            }
            else if (args.Length >= 1)
            {
                for (int i = 0; i < args.Length; i++)
                {
                    filePaths = di.GetFiles(args[i]);

                    foreach (FileInfo filePath in filePaths)
                    {
                        Console.WriteLine(filePath);
                    }
                }
            }
        }
    }
}
